package org.vectrics.date;

import java.text.SimpleDateFormat;
import java.util.Locale;

import org.vectrics.common.util.DateFormats;

public class TestDateFormats implements DateFormats {

	public TestDateFormats() {
		super();
	}

	public SimpleDateFormat getDateFormatForDayDateMonthYear(Locale locale) {
    	String formatString = "E dd/MM/yy";
    	return(new SimpleDateFormat(formatString));
    }

	public SimpleDateFormat getDateFormatRoundToDay(Locale locale) {
		return new SimpleDateFormat("MM/dd/yyyy");
	}

	public SimpleDateFormat getDateFormatRoundToMinute(Locale locale) {
		return new SimpleDateFormat("MM/dd/yyyy h:mm a");
	}

	public SimpleDateFormat getDateFormatRoundToSecond(Locale locale) {
		return new SimpleDateFormat("MM/dd/yyyy h:mm:ss a");
	}

	public SimpleDateFormat getDateFormatForSort() {
		return new SimpleDateFormat("yyyy/MM/dd");
	}

	public SimpleDateFormat getDateTimeFormatForSort() {
		return new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
	}

	public SimpleDateFormat getDateTimeFormatForSql() {
		return new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
	}

    public SimpleDateFormat getDateFormatForMonthName() {
    	return(new SimpleDateFormat("MMMMMM"));
    }

    public SimpleDateFormat getDateFormatForHourAndMinute(Locale locale) {
    	String formatString = "H:mm";
    	return(new SimpleDateFormat(formatString));
	}

}
